package com.market.dao;

import java.util.Date;
import java.util.List;

import com.market.domain.Location;
import com.market.domain.PickupSchedule;
import com.market.domain.Promotion;

public interface PromotionDao extends GenericDao<Promotion,Long> {
	/**
	 * This method load all locations associated with this promotion.
	 * @param user
	 * @return
	 */
	public List<Location> findLocations(Promotion promotion);
	
	
	/**
	 * This method find all promotions that valid on specific date;
	 * @param date
	 * @return
	 */
	public List<Promotion> findValidPromotions(Date date, Long locationId);
}
